package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum RefundStatus implements IEnum<Integer> {
    APPLYING(0, "申请中"),
    SUCCESS(1, "退款成功"),
    FAILURE(2, "退款失败");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String type;

    RefundStatus(Integer value, String type) {
        this.type = type;
        this.value = value;
    }
}
